package com.esfak47.mediafetcher.core.event;

import com.esfak47.common.extension.SPI;

import java.util.Set;

/**
 * @author tony
 * @date 2018/5/3
 */
@SPI
public interface EventHandler {

    Set<EventGroupEnum> getSupportGroup();

    Set<String> supportSubject();

    default boolean supportAllSubject(){return false;}

    default void onEvent(Event event) {}


}
